-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: enable manual run of patch release #321
Conversation
.github/scripts/prepare_release.sh
Outdated
|
||
sed -i -e "s/ VERSION\\s*=\\s*\"$oldVersion\"/ VERSION = \"$newVersion\"/" version.rb | ||
|
||
npx conventional-changelog-cli@"$CHANGELOG_VERSION" -p angular -i CHANGELOG.md -s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for skipping changelog generation in standard-version
but then doing it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a point where the version of standart-version and conventional-changelog-cli was set via environmental variable. In that case it was necessary to separate the steps. This has been changed.
- name: Create release | ||
uses: dequelabs/axe-api-team-public/.github/actions/auto-patch-release-v1@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
skip_checks: ${{ steps.skip-checks.outputs.value }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you not do the expression here rather than having a separate step to do it?
skip_checks: ${{ steps.skip-checks.outputs.value }} | |
skip_checks: ${{ github.event_name != schedule }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the string true or false, so we use the output
Test PR: #323
Test issue: #322
Conditional checks were tested in a personal repo: https://github.com/AdnoC/action-test/actions/workflows/push-and-dispatch.yml
https://github.com/dequelabs/axe-api-team/issues/355
https://github.com/dequelabs/axe-api-team/issues/342